import { defineStore } from 'pinia'
import { ref } from 'vue'

// 定义地址 Store
export const useAddressStore = defineStore('address', () => {
  // 地址
  const selectedAddress = ref()

  // 修改地址
  const changeSelectedAddress = (val) => {
    selectedAddress.value = val
  }

  return {
    selectedAddress,
    changeSelectedAddress,
  }
})
